package BaseObject.template;


/**
 * ClassName: Template
 * Package: BaseObject.template
 * Description:
 *
 * @Author Linshio
 * @Create 2025/3/23 17:41
 */
public abstract class Template {

    public abstract void job() throws InterruptedException;

    public void calculateTimes() throws InterruptedException {
        long start = System.currentTimeMillis();
        job();
        long end = System.currentTimeMillis();
        System.out.println(this + "==>" + (end - start));
    }
}
